package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;

import java.util.List;


public interface SetmealService {
    //套餐查询 + 模糊查询
    Page<Setmeal> findByPage(Integer pageNum, Integer pageSize, String name);


    //回显菜品信息 + 菜名模糊匹配
    List<Dish> findByCategoryIdOrName(Long categoryId,String name);


    //新增套餐信息
    void save(Setmeal setmeal);


    //回显套餐信息
    Setmeal findById(Long id);


    //修改套餐信息
    void updateById(Setmeal setmeal);


    //(批量)停售、起售
    void setStatus(Integer status, List<Long> ids);


    //(批量)删除
    void deleteByIds(List<Long> ids);

    //c端查询套餐列表
    List<Setmeal> findList(String categoryId, String status);


    //c端查询套餐中菜品信息
    List<Dish> showDishMsg(Long id);
}
